<template>
  <div>
    <el-table
      :data="tableData"
      stripe
      style="width: 100%"
      highlight-current-row
      :header-cell-style="{ background: '#def2fb', color: '#000' }"
      max-height="650"
    >
      <el-table-column
        v-for="item in tableConfig"
        :key="item.prop"
        :prop="item.prop"
        :label="item.label"
        align="center"
        :show-overflow-tooltip="true"
      >
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  props: {
    tableData: {
      type: Array,
      default: () => [],
    },
    tableConfig: {
      type: Array,
      default: () => [],
    },
    btns: {
      type: Array,
      default: () => [],
    },
  },
  methods: {
    buttonSumbit(type, row) {
      this.$emit("buttonSumbit", type, row);
    },
  },
};
</script>

<style lang="scss" scoped>
.table-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
</style>
